package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CmProjectsMapper;
import com.ruoyi.system.domain.CmProjects;
import com.ruoyi.system.service.ICmProjectsService;

/**
 * 项目名称及报价Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-05
 */
@Service
public class CmProjectsServiceImpl implements ICmProjectsService 
{
    @Autowired
    private CmProjectsMapper cmProjectsMapper;

    /**
     * 查询项目名称及报价
     * 
     * @param id 项目名称及报价主键
     * @return 项目名称及报价
     */
    @Override
    public CmProjects selectCmProjectsById(String id)
    {
        return cmProjectsMapper.selectCmProjectsById(id);
    }

    /**
     * 查询项目名称及报价列表
     * 
     * @param cmProjects 项目名称及报价
     * @return 项目名称及报价
     */
    @Override
    public List<CmProjects> selectCmProjectsList(CmProjects cmProjects)
    {
        return cmProjectsMapper.selectCmProjectsList(cmProjects);
    }

    /**
     * 新增项目名称及报价
     * 
     * @param cmProjects 项目名称及报价
     * @return 结果
     */
    @Override
    public int insertCmProjects(CmProjects cmProjects)
    {
        return cmProjectsMapper.insertCmProjects(cmProjects);
    }

    /**
     * 修改项目名称及报价
     * 
     * @param cmProjects 项目名称及报价
     * @return 结果
     */
    @Override
    public int updateCmProjects(CmProjects cmProjects)
    {
        return cmProjectsMapper.updateCmProjects(cmProjects);
    }

    /**
     * 批量删除项目名称及报价
     * 
     * @param ids 需要删除的项目名称及报价主键
     * @return 结果
     */
    @Override
    public int deleteCmProjectsByIds(String[] ids)
    {
        return cmProjectsMapper.deleteCmProjectsByIds(ids);
    }

    /**
     * 删除项目名称及报价信息
     * 
     * @param id 项目名称及报价主键
     * @return 结果
     */
    @Override
    public int deleteCmProjectsById(String id)
    {
        return cmProjectsMapper.deleteCmProjectsById(id);
    }
}
